package com.lcc.forum.demos.web.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@ApiModel("信息")
@Data
public class Article {
    private Long id;

    private Long boardId;

    private Long userId;

    private String title;

    private Integer visitCount;

    private Integer replyCount;

    private Integer likeCount;

    private Byte state;

    private Byte deleteState;

    private Date createTime;

    private Date updateTime;
    //判断是否为作者
    @ApiModelProperty("当前登录是否为文章作者")
    private Boolean own ;//默认情况为false,Boolean类型的变量前面不加is前缀

    private String content;
    //引入用户对象
    private User user;
    //引入版块对象
    private Board board;

}